* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.flex {
  display: flex;

  &.end {
    justify-content: flex-end;
  }
}

.codeDiv {
  margin: 5px 0;
  padding: 5px 0;
  background-color: #282c34;
  border-radius: 4px;

  .codeHeader {
    padding: 5px 10px 10px;
    display: flex;
    position: relative;
    cursor: default;


    .copyDiv {
      position: absolute;
      right: 10px;
      top: 4px;
      cursor: pointer;
      color: #a3a7af;

      &:hover {
        color: #eee;
      }
    }

    .dic {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 8px;

      &:nth-child(1) {
        background-color: #ff5652;
      }

      &:nth-child(2) {
        background-color: #d8dcdc;
      }

      &:nth-child(3) {
        background-color: #00c240;
      }
    }
  }

  .codeMain{
    display: flex;
    padding-right: 10px;
    .codeNum{
      min-width: 40px;
      border-right: 1px solid #999;
      padding: 0 10px;
      color: #fff;
      text-align: center;
      margin-right: 10px;
    }
    pre{
      margin-left: 5px;
      flex: 1;
      overflow-x: auto !important;
    }
  }
}
